package com.dao;

import java.util.List;

import com.pojo.Department;

public interface DepartmentMapper {
	
	/**
	 * 获取数据总数
	 * @return
	 */
	public int getCounts();
	
    int deleteByPrimaryKey(Integer did);
    
    int deldepartments(Integer did);

    int insert(Department record);

    int insertSelective(Department record);

    Department selectByPrimaryKey(Integer did);
    
    /**
	 * 分页查询
	 * @param page 从第几个数
	 * @param groups 连续查询几个
	 * @return
	 */
    List<Department> getall(int page,int groups);
    
    List<Department> getDepartments();

    int updateByPrimaryKeySelective(Department record);

    int updateByPrimaryKey(Department record);
}